import React, { Component } from 'react'
import './main.scss'
import zfb from '@/woman-on-ipad.jpg'
import axios from 'axios'


//react 的根组件
export default class App extends Component {

  componentDidMount(){
    //http://open.douyucdn.cn/api/RoomApi/live
    axios('/api/RoomApi/live').then(res=>{
      console.log(res);
    })
  }

  render() {
    return (
      <div>
        <h1>App + react:一节课不旷,一节课不听.主打的就是陪伴.</h1>
        <img src={zfb} alt="" />
      </div>
    )
  }
}
